//登录接口ts类型

export interface loginForm {
    username: string
    password: string
}

interface dataType {
    token?: string,
    message?: string
}

export interface loginResponseData {
    code: number
    data: dataType
}

//定义服务器返回用户信息相关的数据类型
interface userInfo {
    userId: number
    avatar: string
    username: string
    password: string
    desc: string
    roles: string[]
    buttons: string[]
    routes: string[]
    token: string
}

interface user {
    checkUser: userInfo
}

export interface userREsponseData {
    code: number
    data: user
}
